package com.pri.chat.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.netease.nim.uikit.net.entity.SystemMsgBean;
import com.pri.chat.R;

import java.util.List;

import androidx.annotation.Nullable;

/**
 * 描述：添加类的描述
 *
 * @author wx5e48d604c2885118
 * @time 2020/4/24
 */
public class SystemMsgAdapter extends BaseQuickAdapter<SystemMsgBean, BaseViewHolder> {

    public SystemMsgAdapter(int layoutResId, @Nullable List<SystemMsgBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SystemMsgBean item) {
        helper.setText(R.id.msg_content,item.getProperty());
        helper.setText(R.id.msg_time,item.getAddDate());
    }
}
